﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Globalization;
using System.Web.Security;
using System.Linq;
using System.Web;
using System.Data.SqlClient;
using System.Configuration;
namespace prohomework.Models
{
    //public sealed class ConnectionManager
    //{
    //    private ConnectionManager() { }
    //    [ThreadStatic]
    //    public static SqlConnection sqlConnection;
    //    const string ConnectionString = "DefaultConnection";
    //    public static SqlConnection Connection
    //    {
    //        get
    //        {
    //            if (sqlConnection == null)
    //            {
    //                sqlConnection = new SqlConnection(ConfigurationManager.ConnectionStrings[ConnectionString].ConnectionString);
    //            }
    //            return sqlConnection;
    //        }
    //    }



    //}
}